updating oE get_position

get_position

include graphics.e 
namespace graphics 
public function get_position() 

returns the current line and column position of the cursor.

Returns:

A sequence, {line, column}, the current position of the text mode cursor.

Comments:

The coordinate system for displaying text is different from the one for displaying pixels. Pixels are displayed such that the top-left is (x=0,y=0) and the first coordinate controls the horizontal, left-right location. In pixel-graphics modes you can display both text and pixels. get_position returns the current line and column for the text that you are displaying, not the pixels that you may be plotting. There is no corresponding routine for getting the current pixel position, because there is no such thing.

See Also:

position

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu